import http from '@/utils/http.js'
export const verifyCodeApi = (data) => {
	return http.get('/code', { params: data })
}
export const loginByMobileApi = (data) => {
	return http.post('/login', data)
}
export const loginByPassword = (data) => {
	return http.post('/login/password', data)
}
export const userInfoApi = () => {
	return http.get('/patient/myUser')
}

export const QQLoginApi = (data) => {
	return http.post('/login/thirdparty', data)
  }
  /**
 * 绑定手机号
 */
export const bindingMobileApi = (data) => {
	return http.post('/login/binding', data)
  }
  export const unboundApi = (phone) => {
	return http.put('/unbound/'+phone)
  }
